package com.example.script.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ScriptNameExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ScriptNameExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andScripttypeIsNull() {
            addCriterion("scriptType is null");
            return (Criteria) this;
        }

        public Criteria andScripttypeIsNotNull() {
            addCriterion("scriptType is not null");
            return (Criteria) this;
        }

        public Criteria andScripttypeEqualTo(Long value) {
            addCriterion("scriptType =", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeNotEqualTo(Long value) {
            addCriterion("scriptType <>", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeGreaterThan(Long value) {
            addCriterion("scriptType >", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeGreaterThanOrEqualTo(Long value) {
            addCriterion("scriptType >=", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeLessThan(Long value) {
            addCriterion("scriptType <", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeLessThanOrEqualTo(Long value) {
            addCriterion("scriptType <=", value, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeIn(List<Long> values) {
            addCriterion("scriptType in", values, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeNotIn(List<Long> values) {
            addCriterion("scriptType not in", values, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeBetween(Long value1, Long value2) {
            addCriterion("scriptType between", value1, value2, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScripttypeNotBetween(Long value1, Long value2) {
            addCriterion("scriptType not between", value1, value2, "scripttype");
            return (Criteria) this;
        }

        public Criteria andScriptnameIsNull() {
            addCriterion("scriptName is null");
            return (Criteria) this;
        }

        public Criteria andScriptnameIsNotNull() {
            addCriterion("scriptName is not null");
            return (Criteria) this;
        }

        public Criteria andScriptnameEqualTo(String value) {
            addCriterion("scriptName =", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameNotEqualTo(String value) {
            addCriterion("scriptName <>", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameGreaterThan(String value) {
            addCriterion("scriptName >", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameGreaterThanOrEqualTo(String value) {
            addCriterion("scriptName >=", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameLessThan(String value) {
            addCriterion("scriptName <", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameLessThanOrEqualTo(String value) {
            addCriterion("scriptName <=", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameLike(String value) {
            addCriterion("scriptName like", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameNotLike(String value) {
            addCriterion("scriptName not like", value, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameIn(List<String> values) {
            addCriterion("scriptName in", values, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameNotIn(List<String> values) {
            addCriterion("scriptName not in", values, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameBetween(String value1, String value2) {
            addCriterion("scriptName between", value1, value2, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnameNotBetween(String value1, String value2) {
            addCriterion("scriptName not between", value1, value2, "scriptname");
            return (Criteria) this;
        }

        public Criteria andScriptnopIsNull() {
            addCriterion("scriptNOP is null");
            return (Criteria) this;
        }

        public Criteria andScriptnopIsNotNull() {
            addCriterion("scriptNOP is not null");
            return (Criteria) this;
        }

        public Criteria andScriptnopEqualTo(String value) {
            addCriterion("scriptNOP =", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopNotEqualTo(String value) {
            addCriterion("scriptNOP <>", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopGreaterThan(String value) {
            addCriterion("scriptNOP >", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopGreaterThanOrEqualTo(String value) {
            addCriterion("scriptNOP >=", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopLessThan(String value) {
            addCriterion("scriptNOP <", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopLessThanOrEqualTo(String value) {
            addCriterion("scriptNOP <=", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopLike(String value) {
            addCriterion("scriptNOP like", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopNotLike(String value) {
            addCriterion("scriptNOP not like", value, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopIn(List<String> values) {
            addCriterion("scriptNOP in", values, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopNotIn(List<String> values) {
            addCriterion("scriptNOP not in", values, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopBetween(String value1, String value2) {
            addCriterion("scriptNOP between", value1, value2, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptnopNotBetween(String value1, String value2) {
            addCriterion("scriptNOP not between", value1, value2, "scriptnop");
            return (Criteria) this;
        }

        public Criteria andScriptDurationIsNull() {
            addCriterion("script_duration is null");
            return (Criteria) this;
        }

        public Criteria andScriptDurationIsNotNull() {
            addCriterion("script_duration is not null");
            return (Criteria) this;
        }

        public Criteria andScriptDurationEqualTo(String value) {
            addCriterion("script_duration =", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationNotEqualTo(String value) {
            addCriterion("script_duration <>", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationGreaterThan(String value) {
            addCriterion("script_duration >", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationGreaterThanOrEqualTo(String value) {
            addCriterion("script_duration >=", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationLessThan(String value) {
            addCriterion("script_duration <", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationLessThanOrEqualTo(String value) {
            addCriterion("script_duration <=", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationLike(String value) {
            addCriterion("script_duration like", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationNotLike(String value) {
            addCriterion("script_duration not like", value, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationIn(List<String> values) {
            addCriterion("script_duration in", values, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationNotIn(List<String> values) {
            addCriterion("script_duration not in", values, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationBetween(String value1, String value2) {
            addCriterion("script_duration between", value1, value2, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptDurationNotBetween(String value1, String value2) {
            addCriterion("script_duration not between", value1, value2, "scriptDuration");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionIsNull() {
            addCriterion("script_short_introduction is null");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionIsNotNull() {
            addCriterion("script_short_introduction is not null");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionEqualTo(String value) {
            addCriterion("script_short_introduction =", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionNotEqualTo(String value) {
            addCriterion("script_short_introduction <>", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionGreaterThan(String value) {
            addCriterion("script_short_introduction >", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionGreaterThanOrEqualTo(String value) {
            addCriterion("script_short_introduction >=", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionLessThan(String value) {
            addCriterion("script_short_introduction <", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionLessThanOrEqualTo(String value) {
            addCriterion("script_short_introduction <=", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionLike(String value) {
            addCriterion("script_short_introduction like", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionNotLike(String value) {
            addCriterion("script_short_introduction not like", value, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionIn(List<String> values) {
            addCriterion("script_short_introduction in", values, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionNotIn(List<String> values) {
            addCriterion("script_short_introduction not in", values, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionBetween(String value1, String value2) {
            addCriterion("script_short_introduction between", value1, value2, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptShortIntroductionNotBetween(String value1, String value2) {
            addCriterion("script_short_introduction not between", value1, value2, "scriptShortIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionIsNull() {
            addCriterion("script_detailed_introduction is null");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionIsNotNull() {
            addCriterion("script_detailed_introduction is not null");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionEqualTo(String value) {
            addCriterion("script_detailed_introduction =", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionNotEqualTo(String value) {
            addCriterion("script_detailed_introduction <>", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionGreaterThan(String value) {
            addCriterion("script_detailed_introduction >", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionGreaterThanOrEqualTo(String value) {
            addCriterion("script_detailed_introduction >=", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionLessThan(String value) {
            addCriterion("script_detailed_introduction <", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionLessThanOrEqualTo(String value) {
            addCriterion("script_detailed_introduction <=", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionLike(String value) {
            addCriterion("script_detailed_introduction like", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionNotLike(String value) {
            addCriterion("script_detailed_introduction not like", value, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionIn(List<String> values) {
            addCriterion("script_detailed_introduction in", values, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionNotIn(List<String> values) {
            addCriterion("script_detailed_introduction not in", values, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionBetween(String value1, String value2) {
            addCriterion("script_detailed_introduction between", value1, value2, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andScriptDetailedIntroductionNotBetween(String value1, String value2) {
            addCriterion("script_detailed_introduction not between", value1, value2, "scriptDetailedIntroduction");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeIsNull() {
            addCriterion("createtion_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeIsNotNull() {
            addCriterion("createtion_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeEqualTo(Date value) {
            addCriterion("createtion_time =", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeNotEqualTo(Date value) {
            addCriterion("createtion_time <>", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeGreaterThan(Date value) {
            addCriterion("createtion_time >", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtion_time >=", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeLessThan(Date value) {
            addCriterion("createtion_time <", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeLessThanOrEqualTo(Date value) {
            addCriterion("createtion_time <=", value, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeIn(List<Date> values) {
            addCriterion("createtion_time in", values, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeNotIn(List<Date> values) {
            addCriterion("createtion_time not in", values, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeBetween(Date value1, Date value2) {
            addCriterion("createtion_time between", value1, value2, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andCreatetionTimeNotBetween(Date value1, Date value2) {
            addCriterion("createtion_time not between", value1, value2, "createtionTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}